import { Component } from '@angular/core';


@Component({
  selector:'page-thumbnail',
  templateUrl: 'thumbnail.html'
})
export class ThumbnailPage {
  tabBarElement: any;
  constructor() {
      // If we navigated to this page, we will have an item available as a nav param
      if (document.querySelector('.tabbar')) {
          this.tabBarElement = document.querySelector('.tabbar.show-tabbar');
      }

  }

  ionViewWillEnter() {
      if (this.tabBarElement) {
          this.tabBarElement.style.display = 'none';
      }
  }

  ionViewWillLeave() {
      if (this.tabBarElement) {
          this.tabBarElement.style.display = 'flex';
      }
  }
 }